<script type="text/javascript" src="{$_G[setting][jspath]}jquery-ui.js?{VERHASH}"></script>
<style type="text/css">
#mcs2_container .customScrollBox .container {
    float: left;
    position: relative;
    top: 0;
    width: 300px;
}

#mcs2_container .customScrollBox {
    height: 100%;
    overflow: hidden;
    position: relative;
}

#mcs2_container {
    height: 400px;
    left: 0px;
    margin: 0;
    /*position: absolute;*/
    top: 30px;
    width: 300px;
}

#mcs2_container .dragger {
    background: none repeat scroll 0 0 #333333;
    border-left: 1px solid #787878;
    border-right: 1px solid #000000;
    color: #666666;
    cursor: pointer;
    height: 60px;
    line-height: 60px;
    margin-left: 0px;
    overflow: hidden;
    position: absolute;
    text-align: center;
    width: 6px;
}
#mcs2_container .dragger_container {
    /*box-shadow: 0 0 10px #dfdfdf inset;
    cursor: pointer;
    float: left;
    height: 480px;
    margin: 10px 0 0 12px;
    position: relative;
    width: 6px;*/
	
	box-shadow: 0 0 10px #DFDFDF inset;
    cursor: pointer;
    height: 480px;
    position: absolute;
    right: 1px;
    top: 1px;
    width: 4px;
}

#massage_menu, #woomail_menu, #addmor_menu {
	border-color: #9A9A9A;
	margin:0 1px -1px;
	padding: 0px 0px 0px;
	width: 300px;
	font-family:Tahoma, Geneva, sans-serif;
	font-weight:normal;
	position:fixed !important;
	top:30px !important;
	border-top:0;
}
.bottom-box-mass {
	background-color:#F7F7F7;
	width:100%
}
.box-content-massage {
}
.box_content_woomail {
}
</style>
<div id="toptb" class=" cl">
    <div class="bgtop_pg">
        <div class="fix-w-hd cl">
            
            <!--{if $_G['uid']}-->
            <a href="javascript:;" id="qmenu" onClick="showMenu({'ctrlid':'qmenu','pos':'34!','ctrlclass':'a','duration':2});" initialized="true"><!--{avatar($_G[uid],small)}--></a>
            <a href="home.php?mod=spacecp&ac=friend&op=request&ts=friend" class="buttonmenu" id="addmor" onClick="return loadmessage(this.id);" initialized="true" title="Lời mời kết bạn" >&nbsp;</a>
            
            <a href="home.php?mod=space&do=pm" id="woomail" class="buttonmenu" onClick="return loadmessage(this.id);"  initialized="true" title="Tin nhắn mới">&nbsp;</a>
            
            <a href="home.php?mod=space&do=notice" id="massage" class="buttonmenu" onClick="return loadmessage(this.id);"  initialized="true" title="Thông báo mới">&nbsp;</a>
            
            <!--{if $_G['setting']['taskon'] && !empty($_G['cookie']['taskdoing_'.$_G['uid']])}--><a href="home.php?mod=task&item=doing" id="task_ntc" class="new" title="{lang task_doing} {lang task}"></a><!--{/if}-->
            <!--{/if}-->
            <ul>
                    <li class="home_img"><a href="/" title="{lang trang_chu}"><img src="{IMGDIR}/logo_small.png" width="90" height="33"/></a></li>
            <!--{loop $_G['setting']['navs'] $nav}-->
                <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->
                    <li {if $mnid == $nav[navid]}class="a" {/if}$nav[nav]></li>
                <!--{/if}-->
            <!--{/loop}-->
            </ul>
            <!--{if $_G['uid']}-->
            <!-- Search -->
            <!--{subtemplate common/pubsearchform}-->
            <!--{else}-->
            <span style="margin-right: 100px; float: right;">
                <ul>
                    <li><a href="member.php?mod=register">Đăng ký</a></li>
                    <li><a onclick="showWindow('login', this.href)" href="member.php?mod=logging&amp;action=login">Đăng nhập</a></li>
                </ul>
            </span>
            <!--{/if}-->
        </div> 
    </div>
</div>

<!-- Sub Top Menu -->
$_G[setting][menunavs]

<!--{if !IS_ROBOT}-->
<script type="text/javascript">
	function loadingprompt(){
		return "<span class=\"\"><img align=\"absmiddle\" src=\"{IMGDIR}/loading.gif\">&nbsp;Đang tải dữ liệu...</span>";
	}
</script>
<div class="clearfix">
    <div id="addmor_menu" class="p_pop {if !$_G['uid']}blk{/if} clearfix" style="display:none;" >
        <div class="box-content-massage ac_pop fts">
            <div class="top-box-mass modul-item-right bord-b cleadfix">Lời mời kết bạn</div>
            <div id="addmor_content" class="">
                Không có lời mời nào
            </div>
        </div><!--/box-modul-marker-->
        <div class="bottom-box-mass p-i-r bord-t"><a href="home.php?mod=spacecp&ac=friend&op=request"> Xem tất cả lời mời kết bạn </a></div>
    </div><!--/addmor_menu-->

    <div id="massage_menu" class="p_pop {if !$_G['uid']}blk{/if} clearfix" style="display:none;" >
        <div class="box-content-massage ac_pop fts">
            <div class="top-box-mass modul-item-right bord-b cleadfix">Tin mới</div>
            <div id="massage_content" class="">
                Không có tin thông báo nào
            </div>
        </div><!--/box-modul-marker-->
        <div class="bottom-box-mass p-i-r bord-t"><a href="home.php?mod=space&do=notice&isread=1"> Xem tất cả tin thông báo  </a></div>
    </div><!--/massage_menu-->
</div>

<div id="woomail_menu" class="p_pop {if !$_G['uid']}blk{/if} clearfix" style="display:none;" >
    <div class="top-box-mass modul-item-right bord-b cleadfix">Tin nhắn riêng<a href="home.php?mod=spacecp&ac=pm">Gửi tin nhắn</a></div>
        <div class="box_content_woomail cl">
        	<div class="box-content-massage ac_pop fts">
                <div id="mcs2_container">
                    <div class="customScrollBox">
                        <div class="container">
                            <div class="content">
                                <div id="woomail_content" class="">
                                    Không có tin nhắn nào
                                </div>
                            </div>
                        </div>
                        <div class="dragger_container">
                            <div class="dragger ui-draggable">▒</div>
                        </div>
                    </div>
                </div>
            </div><!--/box-modul-marker-->
      	</div>
	<script>
    jQuery(window).load(function() {
        mCustomScrollbars();
    });
    
    function mCustomScrollbars(){
        jQuery("#mcs2_container").mCustomScrollbar("vertical",0,"easeOutCirc",1.05,"auto","yes","no",0); 
    }
    </script>
    <script type='text/javascript' src='{STATICURL}/js/scrollbar.js?{VERHASH}'></script>
                                 
    <div class="bottom-box-mass p-i-r bord-t"><a href="home.php?mod=space&do=pm&filter=privatepm"> Xem tất cả tin nhắn </a></div>
</div><!--/womail_menu-->



<div id="qmenu_menu" class="p_pop {if !$_G['uid']}blk{/if}" style="display: none;">
    <!--{if $_G['uid']}-->
        <div class="ac_pop">
            <div class="avt left"><!--{avatar($_G[uid],small)}--></div>
                <dd class="shoft_profile">
                    <dl><a href="home.php?mod=space&uid=$_G[uid]" title="{lang go_to_space}"><strong>{$_G[member][username]}</strong></a></dl>
                    <dl><!--{if $_G[member][realname]}-->$_G[member][realname]<!--{else}--><a href="home.php?mod=spacecp" title="{lang update_profile_setup}">{lang create_realname}</a><!--{/if}--></dl>
                    <dl>{lang usergroup}: <a href="home.php?mod=spacecp&ac=usergroup" title="{lang go_to_my_group}">$_G[group][grouptitle]</a></dl>
                </dd>
        </div>
        <div class="clear"></div>
        <div class="shorf_axtra_menu"> 
         <!--{if $_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)}-->
                <a href="admin.php" title="{lang admincp}" align="absmiddle" target="_blank"><img src="{IMGDIR}/admin.png" alt="{lang admincp}" />&nbsp;&nbsp;{lang admincp}</a>
                <!--{/if}-->
                <!--{if ($_G['group']['allowmanagearticle'] || $_G['group']['allowpostarticle'] || $_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 6) || getstatus($_G['member']['allowadmincp'], 2) || getstatus($_G['member']['allowadmincp'], 3))}-->
                <a href="portal.php?mod=portalcp" title="{lang portal_manage}"><img src="{IMGDIR}/portalcp.png" align="absmiddle" alt="{lang portal_manage}" /><!--{if $_G['setting']['portalstatus'] }-->&nbsp;&nbsp;{lang portal_manage}<!--{else}-->&nbsp;&nbsp;{lang portal_block_manage}<!--{/if}--></a>
                <!--{/if}-->
                <!--{if $_G['uid'] && $_G['group']['radminid'] > 1}-->
                <a href="forum.php?mod=modcp&fid=$_G[fid]" title="{lang forum_manager}"><img src="{IMGDIR}/forum_cp.png" align="absmiddle" alt="{lang forum_manager}" />&nbsp;&nbsp;{lang forum_manager}</a>
                <!--{/if}-->
            <a href="home.php?mod=space&diy=yes" title="{lang block_profile_diy}"><img src="{STATICURL}image/feed/thread_magic.gif" width="14" height="14" align="absmiddle" />{lang block_profile_diy}</a>
            <a href="home.php?mod=spacecp" title="{lang update_profile_setup}"><img src="{IMGDIR}/my_account.png" align="absmiddle"/>&nbsp;&nbsp;{lang update_profile_setup}</a>
            <a href="home.php?mod=spacecp&ac=invite" title="{lang update_invite_setup}"><img src="{IMGDIR}/invite_add.png" align="absmiddle"/>&nbsp;&nbsp;{lang update_invite_setup}</a>
            <a href="home.php?mod=spacecp&ac=privacy" title="{lang update_privacy_setup}"><img src="{IMGDIR}/advancedsettings.png" align="absmiddle"/>&nbsp;&nbsp;{lang update_privacy_setup}</a>
            <a href="member.php?mod=logging&action=logout&formhash={FORMHASH}" title="{lang logout}"><img src="{IMGDIR}/logout_small.png" align="absmiddle"/>&nbsp;&nbsp;{lang logout}</a>
        </div>
        <div class="clear hr_noise"></div>
        <!-- Dieu Huong -->
        <div class="s_qmenu">
            <ul>
            <!--{loop $_G['setting']['mynavs'] $nav}-->
                <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->
                    <li>$nav[code]</li>
                <!--{/if}-->
            <!--{/loop}-->
            </ul>
        </div>
    <!--{else}-->
        <div class="ptm pbw hm">
            {lang my_nav_login}
        </div>
    <!--{/if}-->
</div>
<!--{/if}-->
